package com.inspur.ourhis_afterend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.inspur.ourhis_afterend.model.Prescribe;
import com.inspur.ourhis_afterend.model.PrescribeExample;
import java.util.List;

import com.inspur.ourhis_afterend.vo.PrescribeVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

public interface PrescribeMapper extends BaseMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    long countByExample(PrescribeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    int deleteByExample(PrescribeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    int deleteByPrimaryKey(Integer prescribeid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    int insert(Prescribe record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    int insertSelective(Prescribe record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    List<Prescribe> selectByExample(PrescribeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    Prescribe selectByPrimaryKey(Integer prescribeid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    int updateByExampleSelective(@Param("record") Prescribe record, @Param("example") PrescribeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    int updateByExample(@Param("record") Prescribe record, @Param("example") PrescribeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    int updateByPrimaryKeySelective(Prescribe record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table PRESCRIBE
     *
     * @mbg.generated Sat Jun 20 23:08:45 CST 2020
     */
    int updateByPrimaryKey(Prescribe record);
    List<PrescribeVo> findByRoid(@Param("roid") Integer roid);
    int updateByRoid(@Param("prescribeid")Integer prescribeid);
}